package com.zbkj.crmeb.chant.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商户会员等级表
 * </p>
 *
 * @author wuzp
 * @since 2022-06-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("eb_channel_member_level")
@ApiModel(value="ChannelMemberLevel对象", description="商户会员等级表")
public class ChannelMemberLevel extends Model<ChannelMemberLevel> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会员等级名称")
    private String name;

    @ApiModelProperty(value = "升级条件")
    @TableField(value = "`condition`")
    private BigDecimal condition;

    @ApiModelProperty(value = "等级图标")
    private String icon;

    @ApiModelProperty(value = "会员等级")
    @TableField(value = "`level`")
    private Integer level;

    @ApiModelProperty(value = "价格阶梯（1售价  2加价率  3折扣）")
    private Integer priceLadder;

    @ApiModelProperty(value = "价格比例")
    private BigDecimal ratio;

    @ApiModelProperty(value = "商户id")
    private Integer merId;

    @ApiModelProperty(value = "状态（0关闭  1开启）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
